// JavaScript Document
function CheckValue(e,obj)
{
 if (obj.value=="0")
 {
	alert("Invalid number")
	obj.value=""
	obj.focus()
	return false;
 }
}
function CheckKey(e,obj){ 
 if(navigator.appName.indexOf("Netscape")>(-1)){
 	if (e.keyCode == 13){ return false; } 
 } 
 if (navigator.appName.indexOf("Microsoft Internet Explorer")>(-1)){ 
 if (event.keyCode < 13 || event.keyCode > 57 || (event.keyCode > 13  && event.keyCode < 48)){ 
	 alert("Please enter number!")
	 obj.focus()
	 return false; 
 }
	if (event.keyCode == 13) return false;
	}
}
function checkNumber(num)
{
	if(num == '') return false;
	if(num != '')
		for(i=0;i<num.length;i++)
			if(num.charAt(i)<'0'||num.charAt(i)>'9')	return false;
	return true;
}

function checkPhone(num)
{
	if (num == "")		return false;
	var len = num.length;
	var str = "0123456789-()+ ";
	for (var index = 0; index < len; index++)	if (str.indexOf(num.charAt(index)) == -1) return false;
	return true;
}

function checkPrice(num)
{
	if (num == "")		return false;
	if(num.charAt(0) == '0') return false;
	
	var len = num.length;
	var str = "0123456789";
	for (var index = 0; index < len; index++)
	 if (str.indexOf(num.charAt(index)) == -1) return false;
	return true;
}